# By Daoyu @2010-07-10
from django.conf.urls.defaults import *
from uncle import settings

urlpatterns = patterns('uncle.project',
    (r'^new/$','views.new_project'),
    (r'^all/$','views.all_project'),
    (r'^search/$','search.search'),
    
    (r'^select/artist/$','search.select_artist'),
    
    (r'^basket/delete/(\d+)/', 'basket.delete_basket'),
    (r'^basket/hide/(\d+)/', 'basket.hide_basket'),
    (r'^basket/show/(\d+)/', 'basket.show_basket'),
    (r'^basket/view_form/(\d+)/', 'basket.edit_mini_basket'),
    (r'^basket/view/(\d+)/', 'basket.mini_basket'),
    (r'^basket/edit/(\d+)/', 'basket.edit_basket'),
    (r'^basket/new/(\d+)/', 'basket.new_basket'),
    
    (r'^(\d+)/$', 'views.detail'),
    
    (r'^(\d+)/edit/$', 'views.edit'),
    (r'^(\d+)/save/$', 'views.save'),
    (r'^(\d+)/delete/$', 'views.delete'),
    (r'^(\d+)/change_name/$', 'views.change_project_name'),
    (r'^(\d+)/add_client_email/$', 'views.add_client_email'),
    
    (r'^(\d+)/client_email/(\d+)/$', 'views.delete_client_email'),
        
    (r'^(\d+)/safe_url/$', 'search.safe_url'),
    (r'^(\d+)/(\w+)/$', 'search.view_safe_url'),
)
